ROOT_PATH=../..

BIN_PATH=$(ROOT_PATH)/bin
INCLUDE_PATH=$(ROOT_PATH)/include
LIB_PATH=$(ROOT_PATH)/lib

CP=/bin/cp -f
RM=/bin/rm -f
MV=/bin/mv -f
MKDIR=/bin/mkdir -p

CC=g++ -g3

INCLUDES=-I$(INCLUDE_PATH)

CXXFILES = 
OBJS=$(CXXFILES:.cc=.o)
TARGET=$(ROOT_PATH)/lib/libgoblin.a

all: preexec $(TARGET) afterexec

$(TARGET): $(OBJS)
	ar r $(TARGET) $(OBJS)
	ranlib $(TARGET)

.SUFFIXES: .o .cc
.cc.o:
	$(CC) -c $(INCLUDES) $< -o $@

.PHONY: preexec
preexec:

.PHONY: afterexec
afterexec:
	$(RM) *~ *.swp

.PHONY: clean
clean:
	$(RM) *.o $(TARGET)
